﻿using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class UIMgr : MonoBehaviour
{

    [SerializeField]
    private GameObject TipButton;

    public void ShowTipButton(string key, string des)
    {
        TipButton.transform.GetChild(0).GetComponent<Text>().text = des;
        TipButton.transform.GetChild(1).GetComponent<Text>().text = key;

        TipButton.SetActive(true);

    }

    public void HideTipButton()
    {
        TipButton.SetActive(false);
    }
}
